import { request } from 'umi';

/**  保存 初始化  POST */
export async function saveInitTophubOperate(options?: any) {
  return request<BaseResponseBean.response<TophubOperateData.OperateSaveInit>>(
    '/tophub/operate/save/init',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  保存   POST */
export async function saveTophubOperate(options?: any) {
  return request<BaseResponseBean.response<string>>('/tophub/operate/save', {
    method: 'POST',
    data: options || {},
  });
}

/**  记录 审核 分页  POST */
export async function pageTophubOperate(options?: any) {
  return request<BaseResponseBean.responsePage<TophubOperateData.OperatePage[]>>(
    '/tophub/operate/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  选择 记录 详情 审核 分页  POST */
export async function selectTophubOperate(options?: any) {
  return request<BaseResponseBean.response<TophubOperateData.OperateSelect>>(
    '/tophub/operate/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  获取 审核 状态 列表  POST */
export async function listTophubOperateState(options?: any) {
  return request<BaseResponseBean.response<TophubOperateData.OperateState[]>>(
    '/tophub/operate/state/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  更新 记录 状态 初始化  POST */
export async function updateTophubState(options?: any) {
  return request<BaseResponseBean.response<string>>('/tophub/operate/update/state', {
    method: 'POST',
    data: options || {},
  });
}
